<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">




<!--  
		<div style="position: relative; top: 30px; left: -200px;">
			<p:dock>
				<p:menuitem value="Dashboard" icon="/resources/images/dashboard.png" url="#" />
				<p:menuitem value="Music" icon="/resources/images/configuracao.png" url="#" />
				<p:menuitem value="Video" icon="/resources/images/video.png" url="#" />
				<p:menuitem value="Graficos" icon="/resources/images/grafico.png" url="#" />
				<p:menuitem value="Configurações" icon="/resources/images/configuracao.png" url="#" />
			</p:dock>
		</div>
-->
		
		<br></br>
		<br></br>

		<p:tabView id="tabView" dynamic="true" cache="true"
			style="width: 95%; height: 690px">

			<p:tab id="tba1" title="Painel"  >
			
			 
			<h:panelGrid columns="2" width="880" >
			  <p:panel id="panel" header="Outubro de 2012" style="width: 730px;">
			  
			  <p:dataTable id="dataTable" var="result" value="#{dashboardMBean.listResulAtual}"   widgetVar="resultTable" 
			  filteredValue="#{dashboardMBean.filteredResultAtual}" emptyMessage="Nenhuma informação cadastrada" >    
			        <f:facet name="header">  
			            <p:outputPanel>  
			                <h:outputText value="Pesquisar em todos os campos: " />  
			                <p:inputText id="globalFilter" onkeyup="resultTable.filter()"  style="width:100px" />  
			            </p:outputPanel>  
			        </f:facet>  
			       <p:column id="modelColumn"  style="text-align: right"
			                headerText="RESULT. GLOBAL"  filterBy="#{result.mes}" >  
			            <h:outputText value="#{result.mes}" />  
			       </p:column>  
			      <p:column id="yearColumn"  headerText="Total de Client." filterBy="#{result.totalClientes}" filterMatchMode="contains" >  
			            <h:outputText value="#{result.totalClientes}" />  
			       </p:column>   
				   <p:column headerText="Total de Campanh."  filterMatchMode="exact">  
				           <h:outputText value="#{result.totalCampanhas}" />  
				   </p:column>  				  
				   <p:column headerText="Total de Event."  filterMatchMode="endsWith">  
				           <h:outputText value="#{result.totalEventos}" />  
				   </p:column>
				   <p:column headerText="Total de Public."  filterMatchMode="endsWith">  
				           <h:outputText value="#{result.totalPublicacoes}" />  
				    </p:column>
				    <p:column headerText="RACE Total"  filterMatchMode="endsWith">  
				           <h:outputText value="#{result.RACETotal}" />  
				     </p:column>
				         
				</p:dataTable>  
				<br></br>
				<br></br>
				<p:dataTable id="dataTable2" var="car"  widgetVar="carsTable"  emptyMessage="Nenhuma informação cadastrada" >    
			        <f:facet name="header">  
			            <p:outputPanel>  
			                <h:outputText value="Search all fields:" />  
			                <p:inputText id="globalFilter"  style="width:100px" />  
			            </p:outputPanel>  
			        </f:facet>  
			       <p:column id="modelColumn"   
			                headerText="RESULT. ATUAIS IDENTIFICADOS"  filterBy="RESULTADO GLOBAL / COMPARATIVO"
			                filterMatchMode="contains">  
			            <h:outputText value="modelo" />  
			       </p:column>  
			      <p:column  headerText="Total de Campanh." >  
			            <h:outputText value="ano" />  
			       </p:column>   
				   <p:column headerText="Total de Event."  filterMatchMode="exact">  
				           <h:outputText value="manufatura" />  
				   </p:column>  				  
				   <p:column headerText="Total de Public."  filterMatchMode="endsWith">  
				           <h:outputText value="cor" />  
				   </p:column>
				   <p:column headerText="ROI Total"  filterMatchMode="endsWith">  
				           <h:outputText value="cor" />  
				    </p:column>

				         
				</p:dataTable>
				<br></br>
				<br></br>
				 <p:panel id="panel2" header="ESTATÍSTICAS">
				   <p:graphicImage value="#{graficoMBean.chart}" /> 
				 </p:panel>
			    
			  </p:panel>
				   
             	</h:panelGrid>
			</p:tab>

		</p:tabView>



</html>
